#include "stdafx.h"

DWORD g_allLocks;

// Called by DataInterface creator and LockServer(TRUE)
void Lock()
{
	++g_allLocks;
}

// Called by DataInterface destructor and LockServer(FALSE)
void UnLock()
{
	--g_allLocks;

	/*if(g_allLocks == 0)
		PostQuitMessage(0);*/
}
